toEither

open override fun toEither(): Either<Throwable, Nothing>

Converts this Try to Either.

Return

Left if this is Failure or Right if this is Success.